<?xml version="1.0" encoding="UTF-8" ?>
<!DOCTYPE html>
<html lang="en" xmlns="http://www.w3.org/1999/xhtml"
    xmlns:ui="http://xmlns.jcp.org/jsf/facelets"
    xmlns:h="http://xmlns.jcp.org/jsf/html"
    xmlns:c="http://xmlns.jcp.org/jsp/jstl/core"
    xmlns:fn="http://java.sun.com/jsp/jstl/functions">

    <ui:composition template="/WEB-INF/content/layout.xhtml">
        <ui:define name="meta">
    <meta http-equiv="Cache-Control" content="no-cache" />
    <meta http-equiv="Pragma" content="no-cache" />
    <meta http-equiv="Expires" content="0" />
        </ui:define>

        <ui:define name="title">${msg['menu.server.browser']}</ui:define>

        <ui:define name="content">

<h2>${msg['server.browser.information']}</h2>
${fn:escapeXml(header['User-Agent'])}
<h2>${msg['server.browser.statistics']}</h2>
<article>
    <section data-role="collapsible" data-collapsed="false">
    <h3>${msg['server.browser.statistics.agents']}</h3>
    <input id="raw-browser-input" data-type="search" placeholder="${msg['filter']}" />
    <table border="1" data-filter="true" data-input="#raw-browser-input">
    <thead><tr><th>${msg['server.browser.agent']}</th><th>${msg['server.browser.agent.count']}</th></tr></thead>
    <tbody>
        <c:forEach items="${bean.userAgents}" var="entry">
        <tr style="font-weight: ${header['User-Agent'] eq entry.key ? 'bold' : 'normal'}"><td>${fn:escapeXml(entry.key)}</td><td>${entry.value}</td></tr>
        </c:forEach>
    </tbody>
    </table>
    </section>
    
</article>
        </ui:define>
    </ui:composition>

</html>
